home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Finance Source / Finance.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.3 KB  |  45 lines  |  [TEXT/CWIE]

  1. //    Copyright 1995 © David A. Wilson. All rights reserved.
  2. //    2-8-95
  3.  
  4. #ifndef _FINANCE_
  5. #define _FINANCE_
  6.  
  7. //=========================================================
  8. // Savings functions
  9. double    FutureValue(double presentValue,
  10.                     double annualInterestPercent, 
  11.                     short compoundsPerYear, 
  12.                     double years);
  13. double FutureValueWithPayments(double payment,
  14.                                 short paymentsPerYear,
  15.                                 short compoundsPerYear, 
  16.                                 double annualInterestPercent, 
  17.                                 double years);
  18. double AnnuityPresentValue(double payment,
  19.                             double annualInterestPercent, 
  20.                             short paymentsPerYear, 
  21.                             double years);
  22. double AnnuityMonths(double annuity,
  23.                         double monthlyWithdrawal,
  24.                         double annualInterestPercent);
  25.  
  26. // Loan functions
  27. double    Payment(double amountBorrowed,
  28.                 double annualInterestPercent, 
  29.                 double years);
  30. double    LoanAmount(double monthlyPayment,
  31.                 double annualInterestPercent, 
  32.                 double years);
  33. double    LoanMonths(double amountBorrowed,
  34.                     double monthlyPayment,
  35.                     double annualInterestPercent);
  36. double    InterestRate(double amountBorrowed,
  37.                     double monthlyPayment,
  38.                     double years);
  39. double    BalloonPayment(double amountBorrowed,
  40.                         double monthlyPayment,
  41.                         double annualInterestPercent,
  42.                         double years);
  43.                         
  44. //====================================================
  45. #endif